package com.deco.domain.vo.product;

import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class PartsInfoVo implements Serializable {

    private static final long serialVersionUID = -3888550067117284244L;

    private Integer id;

    private Integer categoryId;

    private String partsName;

    private Integer status;

    private String remarks;

    private String superior;

    private String maintain;

    private Integer sort;

    private Date createTime;

    private Integer createBy;

    private String createByName;

    private Date updateTime;

    private Integer updateBy;

    private String updateByName;

    private List<PartsInfoImageVo> imageList;
    
    private List<PartsInfoVedioVo> vedioList;

    private PartsCategoryVo partsCategory;
    
    private String categoryName;

    private String imageUrl;

    private Integer active;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public String getPartsName() {
        return partsName;
    }

    public void setPartsName(String partsName) {
        this.partsName = partsName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getSuperior() {
        return superior;
    }

    public void setSuperior(String superior) {
        this.superior = superior;
    }

    /**
     * @return the maintain
     */
    public String getMaintain() {
        return maintain;
    }

    /**
     * @param maintain
     *            the maintain to set
     */
    public void setMaintain(String maintain) {
        this.maintain = maintain;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    /**
     * @return the imageList
     */
    public List<PartsInfoImageVo> getImageList() {
        return imageList;
    }

    /**
     * @param imageList
     *            the imageList to set
     */
    public void setImageList(List<PartsInfoImageVo> imageList) {
        this.imageList = imageList;
    }

    /**
     * @return the createByName
     */
    public String getCreateByName() {
        return createByName;
    }

    /**
     * @param createByName
     *            the createByName to set
     */
    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    /**
     * @return the updateByName
     */
    public String getUpdateByName() {
        return updateByName;
    }

    /**
     * @param updateByName
     *            the updateByName to set
     */
    public void setUpdateByName(String updateByName) {
        this.updateByName = updateByName;
    }

    /**
     * @return the partsCategory
     */
    public PartsCategoryVo getPartsCategory() {
        return partsCategory;
    }

    /**
     * @param partsCategory
     *            the partsCategory to set
     */
    public void setPartsCategory(PartsCategoryVo partsCategory) {
        this.partsCategory = partsCategory;
    }

    /**
	 * @return the vedioList
	 */
	public List<PartsInfoVedioVo> getVedioList() {
		return vedioList;
	}

	/**
	 * @param vedioList the vedioList to set
	 */
	public void setVedioList(List<PartsInfoVedioVo> vedioList) {
		this.vedioList = vedioList;
	}
	
	

	public boolean isRemarksBlank() {
        return StringUtils.isBlank(this.remarks);
    }

    public boolean isSuperiorBlank() {
        return StringUtils.isBlank(this.superior);
    }

    public boolean isMaintainBlank() {
        return StringUtils.isBlank(this.maintain);
    }
    
    public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Integer getActive() {
        return active;
    }

    public void setActive(Integer active) {
        this.active = active;
    }

    @Override
    public String toString() {
        return "PartsInfoVo{" +
                "id=" + id +
                ", categoryId=" + categoryId +
                ", partsName='" + partsName + '\'' +
                ", status=" + status +
                ", remarks='" + remarks + '\'' +
                ", superior='" + superior + '\'' +
                ", maintain='" + maintain + '\'' +
                ", sort=" + sort +
                ", createTime=" + createTime +
                ", createBy=" + createBy +
                ", createByName='" + createByName + '\'' +
                ", updateTime=" + updateTime +
                ", updateBy=" + updateBy +
                ", updateByName='" + updateByName + '\'' +
                ", imageList=" + imageList +
                ", vedioList=" + vedioList +
                ", partsCategory=" + partsCategory +
                '}';
    }
}